<ion-view view-title="授信还款一览" class="">

	<!--描述：滑动块creditrepayview-->
	<ion-content>
		<div class="list" id="discredit-top1">
			<li class="item item-input" ion-datetime-picker title="'请输入开始时间'" ng-model="scope.start_time">
				<span class="input-label">开始时间：</span>
				<input type="text" placeholder="请输入开始时间" class="timeLight" ng-class="{'timeNoneInfo':scope.start_time}">{{scope.start_time| date: "yyyy-MM-dd H:mm:ss"}}</input>
			</li>
			<li class="item item-input" ion-datetime-picker title="'请输入结束时间'" ng-model="scope.end_time">
				<span class="input-label">结束时间：</span>
				<input type="text" placeholder="请输入结束时间" class="timeLight" ng-class="{'timeNoneInfo':scope.end_time}">{{scope.end_time| date: "yyyy-MM-dd H:mm:ss"}}</input>
			</li>
			<li class="item padding-5 text-center">
				<button class="button button-small font-large-my button-positive button-outline" style="width:50%" on-tap="search()">
  	  	      	<i class="icon ion-ios-search" ></i>
  	  	      	开始检索
  	  	      </button>
			</li>
		</div>

		<div class="item padding-10 margin-bottom-10 font-middle-my" id="discredit-top2">
			目前总欠款：<span class="assertive">{{data.now_debt|currency:'￥'}}</span>
			<span class="right-zhang">授信额度：{{data.credit_line|currency:'￥'}}</span>
		</div>
		<div class="item text-center padding-0 font-small-my font-gray-my item-borderless">
			共有<span class="assertive">{{data.page.count}}</span>条还款信息
		</div>
		
		<ion-scroll direction="y" ng-style="discredit_myObj" lazy-scroll>
			<!--描述：下拉刷新-->
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<div class="list list-borderless" ng-repeat="num in data.credit">
				<li class="item padding-5">
					收到还款：{{num.repayment|currency:'￥'}}
				</li>
				<li class="item padding-5">
					还款时间：{{num.time}}
				</li>
				<li class="item padding-5">
					还款方式:{{num.repay_app_id}}
				</li>
				<li class="item padding-5">
					状态:{{get_status(num.status)}}
				</li>

				<li class="item padding-10">
					<div class="row padding-0 text-center">
						<div class="col  bian_gray " ng-show="num.repay_app_id=='线下支付'" on-tap="showBigImg(num.voucher.image)">查看凭证</div>
						<div class="col  bian_gray positive" ng-show="num.status==0" on-tap="confrim(num.member_id,num.info_id,num.repayment,0)">接受还款</div>
						<div class="col  bian_gray positive" ng-show="num.status==0" on-tap="confrim(num.member_id,num.info_id,num.repayment,1)">作废</div>
					</div>
				</li>
			</div>
		</ion-scroll>
		<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>
</ion-view>